﻿@using ZBJF.Warranty.BLL
@using ZBJF.Warranty.Common.Enums.InfoCollect
@using ZBJF.Warranty.Common.Enums.InsuranceWarranty
@using ZBJF.Warranty.WebProvider
@using EnumHelper = ZBJF.Warranty.Common.Common.EnumHelper
@model ZBJF.Warranty.Model.InsuranceWarrantyRecord
@{
    ViewBag.Title = "已处理工单详情";
}
@section Header{
    @Scripts.Render("~/bundles/datatable")
    @Styles.Render("~/Content/datatable")
}
<ul id="myTab" class="nav nav-tabs">
    <li class="active">
        <a href="#workOrderInfo" data-toggle="tab">
            工单信息
        </a>
    </li>
    <li>
        <a href="#remoteSortingAudit" data-toggle="tab">
            远程分拣审核
        </a>
    </li>
    <li>
        <a href="#SortingCenterAudit" data-toggle="tab">
            分拣中心审核
        </a>
    </li>
    <li>
        <a href="#MaintenanceArrangementsInfo" data-toggle="tab">
            维修安排
        </a>
    </li>
    <li>
        <a href="#MaintainProcessing" data-toggle="tab">
            维修结果
        </a>
    </li>
    <li>
        <a href="#processLog" data-toggle="tab">
            流程日志
        </a>
    </li>
</ul>
<div id="myTabContent" class="tab-content">
    <div class="tab-pane  fade in active" id="workOrderInfo">
        <!--工单信息-->
        @RenderPage("/Views/WorkOrderCommonInfo/WorkOrderInfo.cshtml", new {insuranceWarrantyRecordID = Model.ID})
        <!--保单信息-->
        @RenderPage("/Views/WorkOrderCommonInfo/InsuranceOrderInfo.cshtml", new {insuranceWarrantyRecordID = Model.ID})
        <!--保单历史服务信息-->
        @RenderPage("/Views/WorkOrderCommonInfo/InsuranceOrderServiceHistory.cshtml", new {insuranceWarrantyRecordID = Model.ID})
        <!--销售商信息-->
        @RenderPage("/Views/WorkOrderCommonInfo/InsuranceOrderSellerInfo.cshtml", new {insuranceWarrantyRecordID = Model.ID})
        <!--报案信息-->
        @RenderPage("/Views/WorkOrderCommonInfo/ReportInfo.cshtml", new {insuranceWarrantyRecordID = Model.ID, type = "ReportInfo"})          
        <!--合同凭证-->
        @RenderPage("/Views/WorkOrderCommonInfo/InsuranceWarrantyRecordContractInfo.cshtml", new { insuranceWarrantyRecordID = Model.ID })
    </div>
    <div class="tab-pane padding-10 fade in" id="remoteSortingAudit">
        @RenderPage("~/Views/WorkOrderCommonInfo/AuditInfo.cshtml", new {type = "ShowResult", AuditProjectType = (byte) AuditProjectType.RemoteSorting})
        @RenderPage("~/Views/WorkOrderCommonInfo/InfoCollectItems.cshtml", new {type = "ShowResult", CollectWithType = (byte) CollectWithType.RemotePartitionCollect})
    </div>
    <div class="tab-pane padding-10 fade in" id="SortingCenterAudit">
        <!--客户地址信息-->
        @RenderPage("/Views/WorkOrderCommonInfo/ReportInfo.cshtml", new {insuranceWarrantyRecordID = Model.ID})

        <!--分拣中心信息-->

        <!--物流信息-->
        @RenderPage("/Views/WorkOrderCommonInfo/InsuranceWarrantyRecordExpressInfo.cshtml", new {insuranceWarrantyRecordID = Model.ID, ExpressSendByWhoType = (byte) ExpressSendByWhoType.UserSendToPartitionCenter})
        @RenderPage("~/Views/WorkOrderCommonInfo/AuditInfo.cshtml", new {type = "ShowResult", AuditProjectType = (byte) AuditProjectType.SortingCenter})
        @RenderPage("~/Views/WorkOrderCommonInfo/InfoCollectItems.cshtml", new {type = "ShowResult", CollectWithType = (byte) CollectWithType.PartitionCenterCollet})
    </div>
    <div class="tab-pane padding-10 fade in" id="MaintenanceArrangementsInfo">
        @RenderPage("~/Views/WorkOrderCommonInfo/MaintenanceArrangementsInfo.cshtml", new {id = Model.ID})
    </div>
    <div class="tab-pane padding-10 fade in" id="MaintainProcessing">
        <!--维修结果-->
        @RenderPage("MaintainResult.cshtml", new {id = Model.ID})
    </div>
    <div class="tab-pane padding-10 fade in" id="processLog">
        @RenderPage("/Views/InsuranceWarrantyRecord/ProcessLogsIndex.cshtml", new { InsuranceWarrantyRecordId = Model.ID })
    </div>
</div>